package com.example;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class JsonShow {
  public static void main(String[] args) {

    String jsonString = "{'no': '001', 'name': '张三', 'age':18}";
    JSONObject jsonObject = JSON.parseObject(jsonString);
    jsonObject.put("sex", "男");
    System.out.println(jsonObject);
  }
}
